<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="数据库日志空间占满导致业务无法正常进行">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="informix-0086.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="">
  <meta name="DC.Publisher" content="20250306">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="informix-0091">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>数据库日志空间占满导致业务无法正常进行</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="informix-0091"></a><a name="informix-0091"></a>
  <h1 class="topictitle1">数据库日志空间占满导致业务无法正常进行</h1>
  <div>
   <div class="section">
    <h4 class="sectiontitle">现象描述</h4>
    <ol>
     <li>Informix/GBase 8s执行备份任务时，页面报错，提示“执行数据库的数据备份失败”。</li>
     <li>Informix/GBase 8s执行恢复任务时，页面报错，提示“执行恢复任务失败”。</li>
    </ol>
   </div>
   <div class="section">
    <h4 class="sectiontitle">可能原因</h4>
    <p>数据库日志存储空间被占满，导致无法执行数据库命令，影响了正常业务。</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">处理步骤</h4>
    <ol>
     <li><span>登录Informix/GBase 8s主机。</span></li>
     <li><span>Informix数据库执行<strong id="informix-0091__informix-0012_b096445305220">su - informix</strong>命令切换为Informix数据库用户，GBase 8s数据库执行<strong id="informix-0091__informix-0012_b4835175993915">su - gbasedbt</strong>命令切换为GBase 8s数据库用户。</span></li>
     <li><span>执行<strong>onstat -l</strong>命令，查看数据库状态。</span><p></p><p><span><img src="zh-cn_image_0000002200098197.png"></span></p> <p></p></li>
     <li><span>执行<strong>onbar -b -l -c</strong>命令，对日志空间进行清理。</span><p></p>
      <div class="note">
       <img src="public_sys-resources/note_3.0-zh-cn.png"><span class="notetitle"> </span>
       <div class="notebody">
        <p>如果是主备集群，在主备节点均需对日志空间进行清理。</p>
       </div>
      </div> <p></p></li>
     <li><span>重新执行备份或恢复任务。</span></li>
    </ol>
   </div>
   <div class="section">
    <h4 class="sectiontitle">建议与总结</h4>
    <p>无</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">参考信息</h4>
    <p>无。</p>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="informix-0086.html">常见问题</a>
    </div>
   </div>
  </div>
 </body>
</html>